package com.zhehekeji.opsys.api.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "t_area")
public class TArea implements java.io.Serializable {
    /**
	 * 
	 */
	private static final long serialVersionUID = -5016711869162331732L;

	@Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @Column(name = "ID", length = 20, nullable = false, unique = true)
	private Long id;

    /**
     * 编码
     */
	@Column(name = "AREA_IDENTITY", length = 64, nullable = true)
    private String areaIdentity;

    /**
     * 名称
     */
    @Column(name = "AREA_NAME", length = 64, nullable = true)
    private String areaName;

    /**
     * 真正的编码
     */
    @Column(name = "TRUE_IDENTITY", length = 64, nullable = true)
    private String trueIdentity;

    /**
     * 创建时间
     */
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "CREATE_TIME", nullable = true)
    private Date createTime;

    /**
     * 省份编码
     */
    @Column(name = "PROVINCE_IDENTITY", length = 64, nullable = true)
    private String provinceIdentity;
}
